/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.DragonPokerServer.Classes;

/**
 *
 * @author Administrator
 */
public class Card {

    private int value;
    private final int suit;
    

    public Card(int value, int suit){
        this.value = value;
        this.suit = suit;
    }

    public int getSuit() {
        return suit;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getSuitString(){
        switch(this.suit){
            case 1: return "Spades";
            case 2: return "Hearts";
            case 3: return "Diamonds";
            case 4: return "Clubs";
            default: return null;
        }
    }

    @Override
    public String toString() {
        return getValue() + getSuitString();
    }




}
